POV-Ray : Newsgroups : povray.general : Convert string identifier to object name : Re: Convert string identifier to object name Server Time
30 Jul 2024 10:18:06 EDT (-0400)
  Re: Convert string identifier to object name  
From: Warp
Date: 2 Nov 2009 11:37:50
Message: <4aef0add@news.povray.org>
Thomas de Groot <tDOTdegroot@interdotnlanotherdotnet> wrote:
> #local PoserName = "Beggar_";
> #include concat(PoserName, "POV_geom.inc")
> #local ObjName = object {PoserName}

  What does the include file contain, specifically? If it contains a "raw"
object, you could also do this:

#local Obj = object { #include "include_file" };

  Works only if the include file can be inserted there and the result is valid
SDL, of course.

-- 
                                                          - Warp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.